package com.easy.common.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor//构造方法
@NoArgsConstructor//无参构造方法
public class Car implements java.io.Serializable{
    private static final long serialVersionUID = 1L;
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private Integer driver_id;
    private String car_number;
    private String car_model;
    private String car_color;
    private String car_brand;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime register_time;
    private Integer isdel;
}
